package com.framework.dao.YHBDao.transactionDao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.framework.entity.tran.TranTransactionInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface YhbTransactionDao extends BaseMapper<TranTransactionInfo> {

    List<Map<String, Object>> queryTransactionList(@Param("userId") String userId, @Param("sn") String sn,@Param("createDate") Date createDate);

    void addIsbenefited(@Param("transactionId") Long transactionId);

    Integer queryYhbBenefited(@Param("transactionId") Long transactionId);

    List<Map<String, Object>> queryCusTranList(@Param("userId") String userId, @Param("start") Integer start);

    List<Map<String, Object>> queryTranList(Map<String, Object> params);

    Integer queryTranCount(Map<String, Object> params);

    /**
     * 根据月份分组
     * @param sn
     * @return
     */
    List<Map<String, Object>> queryTranAndCountList(String sn);
}
